<?php use_helper('SEstadisticas') ?>
<?php use_stylesheets_for_form($form) ?>
<?php use_javascripts_for_form($form) ?>

<?php echo_title('Crear proyecto de tesis') ?>

<div id="admin_container">
  <h1>Crear proyecto de tesis</h1>

  <?php include_partial('pertinencia/flashes') ?>

  <div id="admin_content">
    <div class="admin_form">
      <?php echo form_tag('@pertinencia_tesis?id=' . $tesis->getPertinenciaId()) ?>
        <?php echo $form->renderHiddenFields(false) ?>

        <?php if ($form->hasGlobalErrors()): ?>
          <?php echo $form->renderGlobalErrors() ?>
        <?php endif; ?>

        <fieldset>
          <?php foreach ($form as $name => $field): ?>
            <?php if ($form[$name]->isHidden()) continue ?>
            <div class="admin_form_row">
              <?php echo $form[$name]->renderError() ?>
              <div>
                <?php echo $form[$name]->renderLabel() ?>
                <div class="content">
                  <?php echo $form[$name]->render() ?>
                </div>
              </div>
            </div>
          <?php endforeach ?>
        </fieldset>

        <ul class="admin_actions">
          <li class="admin_action"><?php echo link_to('Pertinencia', '@pertinencia_show?id=' . $tesis->getPertinenciaId()) ?></li>
          <?php echo $helper->linkToSave($form->getObject(), array(  'params' =>   array(  ),  'class_suffix' => 'save',  'label' => 'Save',)) ?>
        </ul>
      </form>
    </div>
  </div>

</div>
